<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

function set_flashdata($value, $key = 'message') {
    $CI =& get_instance();

    return $CI->session->set_flashdata($key, $value);
}

function flashdata($key) {
    $CI =& get_instance();

    return $CI->session->flashdata($key);
}

?>